package com.fishery.client;

import com.fishery.entity.Result;
import com.fishery.entity.SearchOrderConditionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "fishery-order-service")
public interface OrderClient {


	/**
	 * 查询基地的售出订单
	 *
	 * @param searchOrderConditionVo
	 * @return
	 */
	@PostMapping("/order/baseOrder/sale")
	public Result searchSaleOrderOfBase(@RequestBody SearchOrderConditionVo searchOrderConditionVo);


	/**
	 * 获取基地前Size个大客户
	 *
	 * @param baseId
	 * @param size
	 * @return
	 */
	@GetMapping("/customer/top/{baseId}/{size}")
	public Result searchTopCustomerOfBase(@PathVariable(value = "baseId") String baseId,
										  @PathVariable(value = "size") Integer size);


}
